import prettierRecommended from 'eslint-plugin-prettier/recommended'
import { FlatConfig, OptionsOverrides } from '../types'

export default async ({ overrides = {} }: OptionsOverrides = {}): Promise<FlatConfig[]> => [
  {
    ...prettierRecommended,
    name: 'vill-v/prettier',
    rules: {
      ...(prettierRecommended.rules as any),
      ...overrides,
    },
  },
]
